package procsim;

public class PaintPSW1 extends PaintTab{
    public PaintPSW1(Paint parent){
        super(parent);
        // Coordinates
        Design.ldPSWL.addCoords(this, Design.PSW1And1.getUpper2Coords(45));
        Design.ldPSWL.addCoords(this, Design.PSW1And4.getUpper2Coords(45));
        Design.ldPSWL.addCoords(this, Design.PSW1And7.getUpper2Coords(45));
        Design.ldPSWL.addCoords(this, Design.PSW1And10.getUpper2Coords(45));
        Design.prL0.addCoords(this, Design.PSW1And1.getLower2Coords(45));
        Design.prL0.addCoords(this, Design.PSW1And4.getLower2CoordsInv(45));
        Design.prL1.addCoords(this, Design.PSW1And7.getLower2Coords(45));
        Design.prL1.addCoords(this, Design.PSW1And10.getLower2CoordsInv(45));
        Design.PSWin.addCoords(this, Design.PSW1And2.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And3.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And5.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And6.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And8.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And9.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And11.getUpper2Coords(45));
        Design.PSWin.addCoords(this, Design.PSW1And12.getUpper2Coords(45));
        Design.MDR4.addCoords(this, Design.PSW1And2.getLower2Coords(45));
        Design.MDR4.addCoords(this, Design.PSW1And5.getLower2CoordsInv(45));
        Design.MDR5.addCoords(this, Design.PSW1And8.getLower2Coords(45));
        Design.MDR5.addCoords(this, Design.PSW1And11.getLower2CoordsInv(45));
        Design.MDR6.addCoords(this, Design.PSW1And3.getLower2Coords(45));
        Design.MDR6.addCoords(this, Design.PSW1And6.getLower2CoordsInv(45));
        Design.MDR7.addCoords(this, Design.PSW1And9.getLower2Coords(45));
        Design.MDR7.addCoords(this, Design.PSW1And12.getLower2CoordsInv(45));
        Design.stPSWT.addCoords(this, Design.PSW1Or2.getLower2Coords(40));
        Design.clPSWT.addCoords(this, Design.PSW1Or4.getLower2Coords(40));
        Design.stPSWI.addCoords(this, Design.PSW1Or6.getLower2Coords(40));
        Design.clPSWI.addCoords(this, Design.PSW1Or8.getLower2Coords(40));
        Design.PSWL0.addCoords(this, Design.PSW1RS1.getQCoords(45));
        Design.PSWL1.addCoords(this, Design.PSW1RS3.getQCoords(45));
        Design.PSWT.addCoords(this, Design.PSW1RS2.getQCoords(45));
        Design.PSWI.addCoords(this, Design.PSW1RS4.getQCoords(45));
        Design.ldCONTROL.addCoords(this, Design.clPSWTAnd.getUpper2Coords(63));
        Design.ldCONTROL.addCoords(this, Design.stPSWTAnd.getUpper2Coords(63));
        Design.ldCONTROL.addCoords(this, Design.clPSWIAnd.getUpper2Coords(63));
        Design.ldCONTROL.addCoords(this, Design.stPSWIAnd.getUpper2Coords(63));
        Design.TRPD.addCoords(this, Design.clPSWTAnd.getLower2Coords(63));
        Design.TRPE.addCoords(this, Design.stPSWTAnd.getLower2Coords(63));
        Design.INTD.addCoords(this, Design.clPSWIAnd.getLower2Coords(63));
        Design.INTE.addCoords(this, Design.stPSWIAnd.getLower2Coords(63));
        Design.ack.addCoords(this, Design.clPSWTOr.getUpper2Coords(20));
        Design.ack.addCoords(this, Design.clPSWIOr.getUpper2Coords(20));
        Design.stPSWT.addCoords(this, Design.stPSWTAnd.getResCoords(40));
        Design.clPSWT.addCoords(this, Design.clPSWTOr.getResCoords(40));
        Design.stPSWI.addCoords(this, Design.stPSWIAnd.getResCoords(40));
        Design.clPSWI.addCoords(this, Design.clPSWIOr.getResCoords(40));

        Design.PSW1And1Result.addCoords(this, Design.PSW1And1.getResCoords(130));
        Design.PSW1And1Result.addCoords(this, Design.PSW1Or1.getLower2Coords(20));
        Design.PSW1And1Result.addCoords(this, 220, 82, 220, 70);
        Design.PSW1And2Result.addCoords(this, Design.PSW1And2.getResCoords(53));
        Design.PSW1Or1Result.addCoords(this, Design.PSW1Or1.getResCoords(33));
        Design.PSW1And4Result.addCoords(this, Design.PSW1And4.getResCoords(130));
        Design.PSW1And4Result.addCoords(this, Design.PSW1Or3.getLower2Coords(20));
        Design.PSW1And4Result.addCoords(this, 220, 177, 220, 165);
        Design.PSW1And5Result.addCoords(this, Design.PSW1And5.getResCoords(53));
        Design.PSW1Or3Result.addCoords(this, Design.PSW1Or3.getResCoords(23));
        Design.PSW1Or3Result.addCoords(this, Design.PSW1RS1.getRCoords(10));
        Design.PSW1Or3Result.addCoords(this, 290, 157, 290, 113);

        Design.PSW1And7Result.addCoords(this, Design.PSW1And7.getResCoords(130));
        Design.PSW1And7Result.addCoords(this, Design.PSW1Or5.getLower2Coords(20));
        Design.PSW1And7Result.addCoords(this, 220, 262, 220, 250);
        Design.PSW1And8Result.addCoords(this, Design.PSW1And8.getResCoords(53));
        Design.PSW1Or5Result.addCoords(this, Design.PSW1Or5.getResCoords(33));
        Design.PSW1And10Result.addCoords(this, Design.PSW1And10.getResCoords(130));
        Design.PSW1And10Result.addCoords(this, Design.PSW1Or7.getLower2Coords(20));
        Design.PSW1And10Result.addCoords(this, 220, 357, 220, 345);
        Design.PSW1And11Result.addCoords(this, Design.PSW1And11.getResCoords(53));
        Design.PSW1Or7Result.addCoords(this, Design.PSW1Or7.getResCoords(23));
        Design.PSW1Or7Result.addCoords(this, Design.PSW1RS3.getRCoords(10));
        Design.PSW1Or7Result.addCoords(this, 290, 337, 290, 293);

        Design.PSW1And3Result.addCoords(this, Design.PSW1And3.getResCoords(53));
        Design.PSW1And6Result.addCoords(this, Design.PSW1And6.getResCoords(53));
        Design.PSW1And9Result.addCoords(this, Design.PSW1And9.getResCoords(53));
        Design.PSW1And12Result.addCoords(this, Design.PSW1And12.getResCoords(53));

        Design.PSW1Or2Result.addCoords(this, Design.PSW1Or2.getResCoords(33));
        Design.PSW1Or4Result.addCoords(this, Design.PSW1Or4.getResCoords(23));
        Design.PSW1Or6Result.addCoords(this, Design.PSW1Or6.getResCoords(33));
        Design.PSW1Or8Result.addCoords(this, Design.PSW1Or8.getResCoords(23));

        Design.PSW1Or4Result.addCoords(this, Design.PSW1Or4.getResCoords(23));
        Design.PSW1Or4Result.addCoords(this, Design.PSW1RS2.getRCoords(10));
        Design.PSW1Or4Result.addCoords(this, 630, 157, 630, 113);

        Design.PSW1Or8Result.addCoords(this, Design.PSW1Or8.getResCoords(23));
        Design.PSW1Or8Result.addCoords(this, Design.PSW1RS4.getRCoords(10));
        Design.PSW1Or8Result.addCoords(this, 630, 337, 630, 293);

        Design.clPSWIAndResult.addCoords(this, Design.clPSWIAnd.getResCoords(33));
        Design.clPSWTAndResult.addCoords(this, Design.clPSWTAnd.getResCoords(33));
        
        //Collections
        elements.add(Design.PSW1And1);
        elements.add(Design.PSW1And2);
        elements.add(Design.PSW1And3);
        elements.add(Design.PSW1And4);
        elements.add(Design.PSW1And5);
        elements.add(Design.PSW1And6);
        elements.add(Design.PSW1And7);
        elements.add(Design.PSW1And8);
        elements.add(Design.PSW1And9);
        elements.add(Design.PSW1And10);
        elements.add(Design.PSW1And11);
        elements.add(Design.PSW1And12);
        elements.add(Design.clPSWTAnd);
        elements.add(Design.stPSWTAnd);
        elements.add(Design.clPSWIAnd);
        elements.add(Design.stPSWIAnd);
        elements.add(Design.PSW1Or1);
        elements.add(Design.PSW1Or2);
        elements.add(Design.PSW1Or3);
        elements.add(Design.PSW1Or4);
        elements.add(Design.PSW1Or5);
        elements.add(Design.PSW1Or6);
        elements.add(Design.PSW1Or7);
        elements.add(Design.PSW1Or8);
        elements.add(Design.clPSWTOr);
        elements.add(Design.clPSWIOr);
        elements.add(Design.PSW1RS1);
        elements.add(Design.PSW1RS2);
        elements.add(Design.PSW1RS3);
        elements.add(Design.PSW1RS4);
        elements.add(Design.PSW1Inv1);
        elements.add(Design.PSW1Inv2);
        elements.add(Design.PSW1Inv3);
        elements.add(Design.PSW1Inv4);
        elements.add(Design.PSW1Inv5);
        elements.add(Design.PSW1Inv6);

        lines.add(Design.ldPSWL);
        lines.add(Design.prL0);
        lines.add(Design.prL1);
        lines.add(Design.PSWin);
        lines.add(Design.MDR4);
        lines.add(Design.MDR5);
        lines.add(Design.MDR6);
        lines.add(Design.MDR7);
        lines.add(Design.stPSWT);
        lines.add(Design.clPSWT);
        lines.add(Design.stPSWI);
        lines.add(Design.clPSWI);
        lines.add(Design.PSWL0);
        lines.add(Design.PSWL1);
        lines.add(Design.PSWT);
        lines.add(Design.PSWI);
        lines.add(Design.ldCONTROL);
        lines.add(Design.ack);
        lines.add(Design.TRPD);
        lines.add(Design.TRPE);
        lines.add(Design.INTD);
        lines.add(Design.INTE);
        lines.add(Design.PSW1And1Result);
        lines.add(Design.PSW1And2Result);
        lines.add(Design.PSW1And3Result);
        lines.add(Design.PSW1And4Result);
        lines.add(Design.PSW1And5Result);
        lines.add(Design.PSW1And6Result);
        lines.add(Design.PSW1And7Result);
        lines.add(Design.PSW1And8Result);
        lines.add(Design.PSW1And9Result);
        lines.add(Design.PSW1And10Result);
        lines.add(Design.PSW1And11Result);
        lines.add(Design.PSW1And12Result);
        lines.add(Design.PSW1Or1Result);
        lines.add(Design.PSW1Or2Result);
        lines.add(Design.PSW1Or3Result);
        lines.add(Design.PSW1Or4Result);
        lines.add(Design.PSW1Or5Result);
        lines.add(Design.PSW1Or6Result);
        lines.add(Design.PSW1Or7Result);
        lines.add(Design.PSW1Or8Result);
        lines.add(Design.clPSWIAndResult);
        lines.add(Design.clPSWTAndResult);
    }
}
